package cn.wonderland.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @NotNull(message = "id不能为空！")
    private Long id;

    @NotBlank(message = "用户姓名不能为空！")
    private String name;

    @NotNull(message = "手机号不能为空！")
    private Long phone;

    private Long gender;

}
